<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>蓝源Eloan-P2P平台(系统管理平台)</title>
    <link rel="stylesheet" href="../css/bootstrap.css" type="text/css">
    <link rel="stylesheet" href="../css/core.css" type="text/css">
    <link href="../css/WdatePicker.css" rel="stylesheet" type="text/css">

    <script type="text/javascript" src="../js/jquery-2.1.3.js"></script>
    <script type="text/javascript" src="../js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../js/jquery.bootstrap.min.js"></script><link type="text/css" rel="stylesheet" href="../js/account.css">
    <script type="text/javascript" src="../js/bank.js"></script>
    <script type="text/javascript" src="../js/jquery.form.min.js"></script>
    <script type="text/javascript" src="../js/jquery.twbsPagination.js"></script>
    <script type="text/javascript" src="../js/WdatePicker.js"></script>


    <script type="text/javascript">
        $(function() {
            $("#beginDate,#endDate").click(function(){
                WdatePicker();
            });

            $('#pagination').twbsPagination({
                totalPages : 2||1,
                startPage : 1,
                visiblePages : 5,
                first : "首页",
                prev : "上一页",
                next : "下一页",
                last : "最后一页",
                onPageClick : function(event, page) {
                    $("#currentPage").val(page);
                    $("#searchForm").submit();
                }
            });

            $("#query").click(function(){
                $("#currentPage").val(1);
                $("#searchForm").submit();
            })

            $(".auditClass").click(function(){
                $("#myModal").modal("show");
                var data=$(this).data("json");
                $("#myModal [name=id]").val(data.id);
                $("#myModal [name=username]").html(data.username);
                $("#myModal [name=realName]").html(data.realName);
                $("#myModal [name=applyTime]").html(data.applyTime);
                $("#myModal [name=bankName]").html(SITE_BANK_TYPE_NAME_MAP[data.bankName]);
                $("#myModal [name=accountNumber]").html(data.accountNumber);
                $("#myModal [name=bankforkname]").html(data.bankforkname);
                $("#myModal [name=moneyAmount]").html(data.moneyAmount);
            });

            $(".btn_audit").click(function(){
                var form=$("#editform");
                form.find("[name=state]").val($(this).val());
                $("#myModal").modal("hide");
                form.ajaxSubmit(function(data){
                    if(data.success){
                        $.messager.confirm("提示","审核成功!",function(){
                            window.location.reload();
                        });
                    }
                });
                return false;
            });
        });
    </script>
</head>
<body><div style="position: absolute; z-index: 19700; top: -1970px; left: -1970px; display: none;"><iframe src="../js/My97DatePicker.html" frameborder="0" border="0" scrolling="no" style="width: 186px; height: 199px;"></iframe></div>
<div class="container">
    <div class="navbar cm-navbar">
        <img class="logo" alt="Brand" src="../js/logo.png">
        <span class="pageTitle">&nbsp;</span>
        <ul class="nav navbar-nav navbar-right cm-navbar-nav">
            <li>
                <p class="navbar-text text-info">admin</p>
            </li>
            <li><a href="/p2p/moneyWithdraw.do">安全退出</a></li>
            <li><a href="p2p/moneyWithdraw.do">个人设置</a></li>
        </ul>
    </div>		<div class="row">
    <div class="col-sm-3">
        <ul id="menu" class="list-group">

            <li class="list-group-item">
                <a href="p2p/moneyWithdraw.do#" data-toggle="collapse" data-target="#permissionmanage_detail"><span>安全管理</span></a>
                <ul class="in" id="permissionmanage_detail">
                    <li class="systemDictionary"><a href="p2p/systemDictionary_list.do"><span>系统数据字典目录</span></a></li>
                    <li class="systemDictionaryItem"><a href="p2p/systemDictionaryItem_list.do"><span>系统数据字典明细</span></a></li>
                    <li class="ipLog"><a href="p2p/ipLog.do"><span>登录历史</span></a></li>
                </ul>
            </li>
            <li class="list-group-item">
                <a href="p2p/moneyWithdraw.do#" data-toggle="collapse" data-target="#auditmanage_detail">
                    <span>审核项目</span>
                </a>
                <ul class="in" id="auditmanage_detail">
                    <li class="realAuth"><a href="p2p/realAuth.do">实名认证审核</a></li>
                    <li class="vedioAuth"><a href="p2p/vedioAuth.do">视频认证审核</a></li>
                    <li class="userFileAuth"><a href="p2p/userFileAuth.do">认证材料审核</a></li>
                    <li class="bidrequest_publishaudit_list"><a href="p2p/bidrequest_publishaudit_list.do">发标前审核</a></li>
                    <li class="bidrequest_audit1_list"><a href="p2p/bidrequest_audit1_list.do">满标一审</a></li>
                    <li class="bidrequest_audit2_list"><a href="p2p/bidrequest_audit2_list.do">满标二审</a></li>
                    <li class="rechargeOffline"><a href="p2p/rechargeOffline.do">线下充值审核</a></li>
                    <li class="moneyWithdraw active"><a href="p2p/moneyWithdraw.do">提现审核</a></li>
                </ul>
            </li>
            <li class="list-group-item">
                <a href="p2p/moneyWithdraw.do#" data-toggle="collapse" data-target="#systemmanage_detail">
                    <span>平台管理</span>
                </a>
                <ul class="in" id="systemmanage_detail">
                    <li class="companyBank"><a href="p2p/companyBank_list.do">平台账号管理</a></li>
                    <li><a href="p2p/real_auth_list.do">系统账户流水</a></li>
                </ul>
            </li>
        </ul>

        <script type="text/javascript">
            $(".in li.moneyWithdraw").addClass("active");
        </script>
    </div>
    <div class="col-sm-9">
        <div class="page-header">
            <h3>用户提现审核管理</h3>
        </div>
        <form id="searchForm" class="form-inline" method="post" action="p2p/moneyWithdraw.do">
            <input type="hidden" id="currentPage" name="currentPage" value="">
            <div class="form-group">
                <label>状态</label>
                <select class="form-control" name="state">
                    <option value="-1" selected="selected">全部</option>
                    <option value="0">申请中</option>
                    <option value="1">审核通过</option>
                    <option value="2">审核拒绝</option>
                </select>
                <script type="text/javascript">
                    $("[name=state] option[value='-1']").attr("selected","selected");
                </script>
            </div>
            <div class="form-group">
                <label>申请时间</label>
                <input class="form-control" type="text" name="beginDate" id="beginDate" value="">到
                <input class="form-control" type="text" name="endDate" id="endDate" value="">
            </div>
            <div class="form-group">
                <button id="query" class="btn btn-success"><i class="icon-search"></i> 查询</button>
            </div>
        </form>
        <div class="panel panel-default">
            <table class="table">
                <thead>
                <tr>
                    <th>用户名</th>
                    <th>申请时间</th>
                    <th>提现金额</th>
                    <th>状态</th>
                    <th>审核人</th>
                    <th></th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>lisi001</td>
                    <td>2019-12-04</td>
                    <td>10,000</td>
                    <td>审核通过</td>
                    <td>admin</td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>tzr006</td>
                    <td>2019-12-05</td>
                    <td>1,000</td>
                    <td>审核通过</td>
                    <td>admin</td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>tzr006</td>
                    <td>2019-12-05</td>
                    <td>1,000</td>
                    <td>审核通过</td>
                    <td></td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>tzr006</td>
                    <td>2019-12-05</td>
                    <td>1,000</td>
                    <td>审核通过</td>
                    <td></td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>abcde</td>
                    <td>2019-12-06</td>
                    <td>500</td>
                    <td>审核通过</td>
                    <td>admin</td>
                    <td>
                    </td>
                </tr>
                </tbody>
            </table>
            <div style="text-align: center;">
                <ul id="pagination" class="pagination"><li class="first disabled"><a href="p2p/moneyWithdraw.do#">首页</a></li><li class="prev disabled"><a href="p2p/moneyWithdraw.do#">上一页</a></li><li class="page active"><a href="p2p/moneyWithdraw.do#">1</a></li><li class="page"><a href="p2p/moneyWithdraw.do#">2</a></li><li class="next"><a href="p2p/moneyWithdraw.do#">下一页</a></li><li class="last"><a href="p2p/moneyWithdraw.do#">最后一页</a></li></ul>
            </div>
        </div>
    </div>
</div>

    <div class="modal fade" id="myModal" tabindex="-1" role="dialog">
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">
                <div class="modal-body">
                    <form class="form-horizontal" id="editform" method="post" action="p2p/moneyWithdraw_audit.do">
                        <fieldset>
                            <div id="legend" class="">
                                <legend>提现申请审核</legend>
                            </div>
                            <input type="hidden" name="id" value="">
                            <input type="hidden" name="state" value="">
                            <div class="form-group">
                                <label class="col-sm-2 control-label" for="name">申请用户</label>
                                <div class="col-sm-6">
                                    <label class="form-control" name="username"></label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label" for="realName">账户名</label>
                                <div class="col-sm-6">
                                    <label class="form-control" name="realName"></label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label" for="applyTime">申请时间</label>
                                <div class="col-sm-6">
                                    <label class="form-control" name="applyTime"></label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label" for="bankName">开户行</label>
                                <div class="col-sm-6">
                                    <label class="form-control" name="bankName"></label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label" for="accountNumber">账号</label>
                                <div class="col-sm-6">
                                    <label class="form-control" name="accountNumber"></label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label" for="bankforkname">开户支行</label>
                                <div class="col-sm-6">
                                    <label class="form-control" name="bankforkname"></label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label" for="moneyAmount">提现金额</label>
                                <div class="col-sm-6">
                                    <label class="form-control" name="moneyAmount"></label>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label" for="name">审核备注</label>
                                <div class="col-sm-6">
                                    <textarea name="remark" rows="4" cols="60"></textarea>
                                </div>
                            </div>
                        </fieldset>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-success btn_audit" value="1">审核通过</button>
                    <button type="button" class="btn btn-warning btn_audit" value="2">审核拒绝</button>
                </div>
            </div>
        </div>
    </div>
</div>

</body></html>